package com.sniper.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author suzhen
 * @create 2018/3/30
 */
@RestController
public class MqIndexController {

    @Value("${name}")
    private String name;

    @RequestMapping("hi")
    public String hi() {
        return "service-mq-2: " + name;
    }
}
